package com.ruoyi.user.mapper;

import com.ruoyi.user.domain.DriverUser;
import com.ruoyi.user.domain.DriverUserWorkStatus;
import com.ruoyi.user.domain.OrderInfo;
import com.ruoyi.user.domain.PassengerUser;
import com.ruoyi.user.domain.vo.PassengerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @author wangqingbin
 * 不要等待机会，而要创造机会
 * @date 2024/10/21 15:43
 **/
@Mapper
public interface TaxiMapper {
    @Select("select * from passenger_user where openid=#{openid}")
    PassengerUser selectPassenger(String openid);

    @Select("select * from order_info where openid =#{openid} and order_status!=8")
    OrderInfo selectOrder(String openid);

    @Select("select * from driver_user_work_status")
    List<DriverUserWorkStatus> selectDriverWork();

    int saveOrder(PassengerVo passengerVo);

    OrderInfo selectOrderInfo(Long driverId, Date currentDateTime, Date endDateTime);

    @Select("select * from  driver_user where id = #{aLong}")
    DriverUser SelectDirverPhone(Long aLong);
}
